package com.huluobo.a2107monthdemo.utils

import android.widget.ImageView
import androidx.databinding.BindingAdapter

/**
 *  Created by LC on 2023/12/1.
 */
class ImageBindAdapter {
    companion object {
        @BindingAdapter("bindImageUrl")
        @JvmStatic
        fun loadImage(view: ImageView, url: String?) {
            if (url != null) {
                ImageUtil.loadImage(view.context, url, view)
            }
        }
    }
}